﻿using MQTTnet.Formatter;
using System;
using System.Collections.Generic;
using System.Security.Authentication;
using System.Text;

namespace JESAI.MQTT.Client.Configurations
{
    public class MQTTClientConfig
    {
        public string Server { get; set; }

        public string UserName { get; set; }

        public string Password { get; set; }

        public int Port { get; set; } = 0;

        public bool IsWithoutPacketFragmentation { get; set; }

        public long TimeOut { get; set; }

        public MqttProtocolVersion MqttProtocolVersion { get; set; } = MqttProtocolVersion.Unknown;

        public SslProtocols SslProtocols { get; set; }=SslProtocols.None;

        public bool IsUseWebSocket { get; set; } = false;

        public bool IsUseWebSocket4Net { get; set; } = false;
    }
}
